package ylsb.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import ylsb.model.*;

public interface Hc3Mapper {
    int countByExample(Hc3Example example);

    int deleteByExample(Hc3Example example);

    int deleteByPrimaryKey(String id);

    int insert(Hc3 record);
    int insertBatch(List<Hc3> list);

    int insertSelective(Hc3 record);

    List<Hc3> selectByExample(Hc3Example example);

    Hc3 selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Hc3 record, @Param("example") Hc3Example example);

    int updateByExample(@Param("record") Hc3 record, @Param("example") Hc3Example example);

    int updateByPrimaryKeySelective(Hc3 record);

    int updateByPrimaryKey(Hc3 record);

    List<Map<String, Object>> findPinpaiAll(@Param("xiangmuid") String ppxiangmuId);

//    List<Map<String, Object>> findPinpaiByPinzhong(@Param("xiangmuid") String ppxiangmuId,@Param("pinzhongxuhao") String ppPinzhongOne);
//
//    List<Map<String, Object>> findPinpaiFenlei(@Param("xiangmuid") String ppxiangmuId,@Param("pinzhongxuhao")String ppPinzhongOne);



    List<Map<String, Object>> findXinghaoByPinpai(@Param("xiangmuid") String ppxiangmuId,@Param("pinpaixuhao")String ppPinpaiOne);


//    List<Map<String, Object>> findAllByXiangmuIdAndTiaojian(@Param("xiangmuid") String ppxiangmuId,@Param("leibie")String ppleibie,@Param("pinpaiqingkuang")String pppinpaiqingkuang);

    List<Hc3pinpai> selectAllByXiangmuid(@Param("xiangmuid") String xiangmuid, @Param("startindex") int startIndex,
                                            @Param("pagesize") int pageSize);

    List<Hc3pinpai> selectBiaojueByXiangmuid(@Param("xiangmuid") String xiangmuid, @Param("userid") String userid,
//                                                 @Param("leibie") String mmleibie,
//                                                 @Param("pinpaiqingkuang") String mmpinpaiqingkuang,
                                                @Param("startindex") int startIndex, @Param("pagesize") int pageSize);

    Object getHc3list(@Param("xiangmuid") String ppxiangmuId,
//                        @Param("leibie") String mmleibie,
//                        @Param("pinpaiqingkuang") String mmpinpaiqingkuang,
                       @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

}